package com.ytjj.qmyx.mall.service.impl;

import com.ytjj.qmyx.mall.mapper.SpecialRankMapper;
import com.ytjj.qmyx.mall.model.SpecialRank;
import com.ytjj.qmyx.mall.service.SpecialRankService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class SpecialRankServiceImpl implements SpecialRankService {
    @Resource
    private SpecialRankMapper specialRankMapper;

    @Override
    public int insert(SpecialRank record) {
        return specialRankMapper.insert(record);
    }

    @Override
    public int insertSelective(SpecialRank record) {
        return specialRankMapper.insertSelective(record);
    }

    @Override
    public List<SpecialRank> selectBySpecialId(Integer specialId, String platformData, Integer pageSize) {
        return specialRankMapper.selectBySpecialId(specialId, platformData, pageSize);
    }
}
